package com.zjc;

public class ForwardMsg {

    public int localPort;

    public int targetPort;

    public String targetUri;

    public String title;

    public ForwardMsg(int localPort, int targetPort, String targetUri) {
        this.localPort = localPort;
        this.targetPort = targetPort;
        this.targetUri = targetUri;
    }

    public ForwardMsg(int localPort, int targetPort, String targetUri, String title) {
        this.localPort = localPort;
        this.targetPort = targetPort;
        this.targetUri = targetUri;
        this.title = title;
    }

    @Override
    public String toString() {
        return this.title + ":  " + this.localPort + " -> [" + this.targetUri + ":" + this.targetPort + ']';
    }
}
